adTempus API
ArcanaDevelopment.adTempus.Client.Collections Namespace / ObjectCollectionT<T> Class / MoveItem Method / MoveItem(T,Int32) Method
The item to move


In This Topic
    MoveItem(T,Int32) Method
    In This Topic
    Moves the item to the specified index in the collection
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Sub MoveItem( _
       ByVal item As T, _
       ByVal newIndex As Integer _
    ) 
    public virtual void MoveItem( 
       T item,
       int newIndex
    )
    public:
    virtual void MoveItem( 
       T^ item,
       int newIndex
    ) 

    Parameters

    item
    The item to move
    newIndex

    Return Value

    The item's new position, or -1 if the item was not found in the collection.
    See Also